﻿<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<!DOCTYPE html>
<html>
<head>
  <title>添加新商品</title>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="stylesheet" href="../../css/bootstrap.min.css">
  <link rel="stylesheet" href="../../css/font-awesome.min.css">
  <link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
  <link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
  <link rel="stylesheet" href="../../css/main.css">
  <script src="../../libs/jquery.min.js"></script>
  <script src="../../plugins/layer/layer.js"></script>
  <script src="../../libs/bootstrap.min.js"></script>
  <script src="../../libs/vue.min.js"></script>
  <script src="../../libs/vue-i18n.min.js"></script>
  <script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
  <script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
  <script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
	<script src="../../plugins/ueditor/ueditor.config.js"></script>
	<script src="../../plugins/ueditor/ueditor.all.min.js"></script>
	<script src="../../plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
	<script src="../../plugins/ueditor/ueditor.parse.min.js"></script>
  <script src="../../js/common.js"></script>
  <style>
	  td.label_pos {
	  	text-align: right;
	  	vertical-align: top;
	  	font-weight: bold;
	  	padding: 5px 1em;
	  	width: 15%;
		}

		td.label_2 {
		  text-align: right;
		  vertical-align: top;
		  font-weight: bold;
		  padding: 5px 1em;
		}

		td.td_1 {
		  text-align: right;
		  vertical-align: top;
		  padding: 5px 1em;
		}

		td.label_left {
		  text-align: left;
		  vertical-align: top;
		  font-weight: bold;
		  padding: 5px 1em;
		}

		td.narrow-label {
		  text-align: right;
		  vertical-align: top;
		  font-weight: bold;
		  padding: 5px 1em;
		  width: 20%;
		}

		td.micro-label {
		  text-align: right;
		  vertical-align: top;
		  font-weight: bold;
		  padding: 5px 1em;
		  width: 127px;
		  *width: 150px;
		}

		.button-div {
		  text-align: center;
		  padding: 3px 0;
		}

		input.button {
		  padding: 2px 8px 0px;
		  margin: 2px 2px;
		  border: 1px solid #2D5082;
		  background: url(../images/button_bg.gif) repeat-x;
		}
		input.btn-download{
		  -webkit-appearance: none;
		  padding: 0;
		  margin: 60px 0 225px;
		  width: 130px;
		  height: 41px;
		  border: none;
		  line-height: 41px;
		  font-size: 16px;
		  vertical-align: top;
		  background: url(../images/sprit.png) -70px -154px;
		}
		input.btn-download:hover{
		  background: url(../images/sprit.png) -70px -90px;
		}
		input.capital {
		  text-transform: uppercase;
		}

		span.require-field {
		  margin-left: 1em;
		  font: 12px verdana;
		  color: #FF0000;
		}

		th.group-title {
		  text-align: left;
		}  	
  </style>
</head>
<body>
<!--<div id="tabdiv" v-show="showList">	
	<ul id="tabbar-div" class="nav nav-tabs">
  	<li class="active"><a href='#test' data-toggle="tab">{{$t("lang.tab_general")}}</a></li>
    <li><a href="#test1" data-toggle="tab">{{$t("lang.tab_detail")}}</a></li> 
  </ul> 
  <div id="tabbody-div" class="tab-content">
		<div class="tab-pane fade in active" id="test">
		</div>	
		<div class="tab-pane fade " id="test1">
			<temlate>		
				<div class="hello">
					<div id="editor" type="text/plain" style="width:1024px;height:500px"></div>
					<button @click="submits">保存</button>
					<button @click="pushin">写入</button>
				</div>  								
    	</template>
		</div>
  </div>
</div>  
--><!-- start goods form -->
<div id="tabdiv" v-cloak>
	<div v-show="showList">
    <!-- tab bar -->
    <ul id="tabbar-div" class="nav nav-tabs">
      <li class="active"><a href='#home' data-toggle="tab">{{$t("lang.tab_general")}}</a></li>
      <li><a href="#detail" data-toggle="tab">{{$t("lang.tab_detail")}}</a></li> 
      <li><a href="#mix" data-toggle="tab">{{$t("lang.tab_mix")}}</a></li> 
      <li><a href="#properties" data-toggle="tab">{{$t("lang.tab_properties")}}</a></li> 
      <li><a href="#gallery" data-toggle="tab">{{$t("lang.tab_gallery")}}</a></li> 
      <li><a href="#linkgoods" data-toggle="tab">{{$t("lang.tab_linkgoods")}}</a></li> 
      <li><a href="#groupgoods" data-toggle="tab">{{$t("lang.tab_groupgoods")}}</a></li> 
      <li><a href="#article" data-toggle="tab">{{$t("lang.tab_article")}}</a></li> 
    </ul>

    <!-- tab body -->
    <div id="tabbody-div" class="tab-content">
			<div class="tab-pane fade in active" id="home">
				<table width="90%" align="center">
          <tr>
            <td class="label_pos">{{$t("lang.lab_goods_name")}}</td>
            <td><input type="text" name="goods_name" value="{$goods.goods_name|escape}" style="float:left;color:{$goods_name_color};" size="30" /><div style="background-color:{$goods_name_color};float:left;margin-left:2px;" id="font_color" onclick="ColorSelecter.Show(this);"><img src="images/color_selecter.gif" style="margin-top:-1px;" /></div><input type="hidden" id="goods_name_color" name="goods_name_color" value="{$goods_name_color}" />&nbsp;
            <select name="goods_name_style">
              <option value="">{{$t("lang.select_font")}}</option>
              <option v-for="font in fonts" v-bind:value="font.value">{{ font.text }}</option>
            </select>
            {$lang.require_field}</td>
          </tr>
          <tr>
            <td class="label_pos"><a class="glyphicon glyphicon-exclamation-sign" @click="notice('noticeGoodsSN',$event)" ></a>{{$t("lang.lab_goods_sn")}}</td>
            <td><input type="text" name="goods_sn" value="{$goods.goods_sn|escape}" size="20" @blur="onblur" /><span id="goods_sn_notice"></span><br />
            <span class="notice-span" id="noticeGoodsSN" v-if="help_open" style="display:block" v-else style="display:none" >{{$t("lang.notice_goods_sn")}}</span></td>	
          </tr>
          <tr>
            <td class="label_pos">{$lang.lab_goods_cat}</td>
            <td><select name="cat_id" @change="hideCatDiv" ><option value="0">{$lang.select_please}</option>{$cat_list}</select>
            	<template v-if="is_add">
              <a href="javascript:void(0)" @click="rapidCatAdd" title="{$lang.rapid_add_cat}" class="special">{$lang.rapid_add_cat}</a>
              <span id="category_add" style="display:none;">
              <input class="text" size="10" name="addedCategoryName" />
               <a href="javascript:void(0)" @click="addCategory" title="{$lang.button_submit}" class="special" >{$lang.button_submit}</a>
               <a href="javascript:void(0)" @click="goCatPage" title="{$lang.category_manage}" class="special" >{$lang.category_manage}</a>
               <a href="javascript:void(0)" @click="hideCatDiv" title="{$lang.hide}" class="special" ><<</a>
               </span>
             </template>
               {$lang.require_field}
            </td>
          </tr>
          <tr>
            <td class="label_pos">{$lang.lab_other_cat}</td>
            <td>
              <input type="button" value="{$lang.add}" @click="addOtherCat(this.parentNode,$event)" class="button" />
<!--              {foreach from=$goods.other_cat item=cat_id}
              <select name="other_cat[]"><option value="0">{$lang.select_please}</option>{$other_cat_list.$cat_id}</select>
             {/foreach}
-->            </td>
          </tr>
        	<tr>
            <td class="label_pos">{$lang.lab_goods_brand}</td>
            <td><select name="brand_id" @change="hideBrandDiv" ><option value="0">{$lang.select_please}{html_options options=$brand_list selected=$goods.brand_id}</select>
            	<template v-if="is_add">
              <a href="javascript:void(0)" title="{$lang.rapid_add_brand}" @click="rapidBrandAdd" class="special" >{$lang.rapid_add_brand}</a>
              <span v-if="is_add" id="brand_add" style="display:none;">
              <input class="text" size="15" name="addedBrandName" />
               <a href="javascript:void(0)" @click="addBrand" class="special" >{$lang.button_submit}</a>
               <a href="javascript:void(0)" @click="goBrandPage" title="{$lang.brand_manage}" class="special" >{$lang.brand_manage}</a>
               <a href="javascript:void(0)" @click="hideBrandDiv" title="{$lang.hide}" class="special" ><<</a>
               </span>
              </template>
	          </td>
          </tr>
	     		<template v-if="suppliers_exists == 1">
	     		<tr>	
            <td class="label_pos">{$lang.label_suppliers}</td>
            <td><select name="suppliers_id" id="suppliers_id"><option value="0">{$lang.suppliers_no}</option>
            			{html_options options=$suppliers_list_name selected=$goods.suppliers_id}
      					</select>
      			</td>
          </tr>
         	</template>
		      <tr>
            <td class="label_pos">{$lang.lab_shop_price}</td>
            <td><input type="text" name="shop_price" value="{$goods.shop_price}" size="20" @blur="priceSetted"/>
            <input type="button" value="{$lang.compute_by_mp}" @click="marketPriceSetted" />
            {$lang.require_field}</td>
          </tr>
<!--		      <template v-if="user_rank_list">
          <tr>
          	<td class="label_pos"><a class="glyphicon glyphicon-exclamation-sign" @click="notice('noticeUserPrice',$event)" ></a>{{$t("lang.lab_user_price")}}</td>
            <td>
          {foreach from=$user_rank_list item=user_rank}
              {$user_rank.rank_name}<span id="nrank_{$user_rank.rank_id}"></span><input type="text" id="rank_{$user_rank.rank_id}" name="user_price[]" value="{$member_price_list[$user_rank.rank_id]|default:-1}" onkeyup="if(parseInt(this.value)<-1){this.value='-1';};set_price_note({$user_rank.rank_id})" size="8" />
              <input type="hidden" name="user_rank[]" value="{$user_rank.rank_id}" />
              {/foreach}
              <br />
             <span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="noticeUserPrice">{$lang.notice_user_price}</span>
          </td>
          </tr>
          </template>
-->          <tr>
						<td class="label_pos"><a class="glyphicon glyphicon-exclamation-sign" @click="notice('volumePrice',$event)" ></a>{{$t("lang.lab_volume_price")}}</td>
            <td>
              <table width="100%" id="tbody-volume" align="center">
<!--                {foreach from=$volume_price_list item=volume_price name="volume_price_tab"}
                <tr>
                  <td>
                    {if $smarty.foreach.volume_price_tab.iteration eq 1}
                       <a href="javascript:;" onclick="addVolumePrice(this)">[+]</a>
                     {else}
                       <a href="javascript:;" onclick="removeVolumePrice(this)">[-]</a>
                     {/if}
                    {$lang.volume_number} <input type="text" name="volume_number[]" size="8" value="{$volume_price.number}"/>
                     {$lang.volume_price} <input type="text" name="volume_price[]" size="8" value="{$volume_price.price}"/>
                  </td>
                </tr>
                {/foreach}
-->              </table>
 								<span class="notice-span" id="volumePrice" style="display:block"  >{{$t("lang.notice_volume_price")}}</span>
            </td>
          </tr>
          <tr>
            <td class="label_pos">{$lang.lab_market_price}</td>
            <td><input type="text" name="market_price" value="{$goods.market_price}" size="20" />
              <input type="button" value="{$lang.integral_market_price}" @click="integral_market_price" />
            </td>
          </tr>
          <tr>
            <td class="label_pos">{$lang.lab_virtual_sales}</td>
            <td><input type="text" name="virtual_sales" value="{$goods.virtual_sales}" size="20" />
            </td>
          </tr>
     <tr>
            <td class="label_pos"><a class="glyphicon glyphicon-exclamation-sign" @click="notice('giveIntegral',$event)" ></a>{{$t("lang.lab_give_integral")}}</td>
            <td><input type="text" name="give_integral" value="{$goods.give_integral}" size="20" />
           <br /><span class="notice-span" style="display:block" id="giveIntegral">{$lang.notice_give_integral}</span></td>
         </tr>
          <tr>
            <td class="label_pos"><a class="glyphicon glyphicon-exclamation-sign" @click="notice('rankIntegral',$event)" ></a>{{$t("lang.lab_rank_integral")}}</td>
            <td><input type="text" name="rank_integral" value="{$goods.rank_integral}" size="20" />
            <br /><span class="notice-span" style="display:block"  id="rankIntegral">{$lang.notice_rank_integral}</span></td>
          </tr>
          <tr>
            <td class="label_pos"><a class="glyphicon glyphicon-exclamation-sign" @click="notice('noticPoints',$event)" ></a>{{$t("lang.lab_integral")}}</td>
            <td><input type="text" name="integral" value="{$goods.integral}" size="20" @blur="parseint_integral"/>
              <br /><span class="notice-span" style="display:block"  id="noticPoints">{$lang.notice_integral}</span>
            </td>
          </tr>
         <tr>
            <td class="label_pos"><label for="is_promote">
<!--            <input type="checkbox" id="is_promote" name="is_promote" value="1" v-if="goods.is_promote" checked="checked" @click=(handlePromote('',$event);" /> 
-->{$lang.lab_promote_price}</label></td>
            <td id="promote_3"><input type="text" id="promote_1" name="promote_price" value="{$goods.promote_price}" size="20" /></td>
          </tr>
          <tr id="promote_4">
            <td class="label_pos" id="promote_5">{$lang.lab_promote_date}</td>
            <td id="promote_6">
              <input name="promote_start_date" type="text" id="promote_start_date" size="12" value='{$goods.promote_start_date}' readonly="readonly" /><input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('promote_start_date', '%Y-%m-%d', false, false, 'selbtn1');" value="{$lang.btn_select}" class="button"/> - <input name="promote_end_date" type="text" id="promote_end_date" size="12" value='{$goods.promote_end_date}' readonly="readonly" /><input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('promote_end_date', '%Y-%m-%d', false, false, 'selbtn2');" value="{$lang.btn_select}" class="button"/>
            </td>
          </tr>
         <tr>
            <td class="label_pos">{$lang.lab_picture}</td>
            <td>
              <input type="file" name="goods_img" size="35" />
<!--              {if $goods.goods_img}
                <a href="goods.php?act=show_image&img_url={$goods.goods_img}" target="_blank"><img src="images/yes.gif" border="0" /></a>
              {else}
                <img src="images/no.gif" />
              {/if}
-->              <br /><input type="text" size="40" value="{$lang.lab_picture_url}" style="color:#aaa;" 
              <!--onfocus="if (this.value == '{$lang.lab_picture_url}'){this.value='http://';this.style.color='#000';}" -->
              name="goods_img_url"/>
            </td>
          </tr>
<!--          <tr id="auto_thumb_1">
            <td class="label_pos"> {$lang.lab_thumb}</td>
            <td id="auto_thumb_3">
              <input type="file" name="goods_thumb" size="35" />
              {if $goods.goods_thumb}
                <a href="goods.php?act=show_image&img_url={$goods.goods_thumb}" target="_blank"><img src="images/yes.gif" border="0" /></a>
              {else}
                <img src="images/no.gif" />
              {/if}
              <br /><input type="text" size="40" value="{$lang.lab_thumb_url}" style="color:#aaa;" 
              onfocus="if (this.value == '{$lang.lab_thumb_url}'){this.value='http://';this.style.color='#000';}" name="goods_thumb_url"/>
              {if $gd > 0}           
              <br /><label for="auto_thumb"><input type="checkbox" id="auto_thumb" name="auto_thumb" checked="true" value="1" onclick="handleAutoThumb(this.checked)" />{$lang.auto_thumb}</label>{/if}
            </td>
          </tr>
-->       </table>
			</div>
			<div class="tab-pane fade" id="detail">
				<temlate>		
								<div class="hello">
								<div id="editor" type="text/plain" style="width:1024px;height:300px"></div>
								<button @click="submits">保存</button>
								<button @click="pushin">写入</button>
								</div>  								
    		</template>
			</div>
			<div class="tab-pane fade" id="mix">
				<table width="90%" align="center">
				<!--<table class="table">-->
          <tr v-if="if_code">
            <td class="label_pos">{{$t("lang.lab_goods_weight")}}</td>
            <td><input type="text" name="goods_weight" value="{$goods.goods_weight_by_unit}" size="20" /> <select name="weight_unit">{html_options options=$unit_list selected=$weight_unit}</select></td>
          </tr>
          <tr v-if="if_cfg_storage">
            <td class="label_pos"><a class="glyphicon glyphicon-exclamation-sign" @click="notice('noticeStorage',$event)" ></a>{{$t("lang.lab_goods_number")}}</td>
<!--          <td><input type="text" name="goods_number" value="{$goods.goods_number}" size="20" v-if="if_code='' || $goods._attribute neq ''}readonly="readonly"{/if} /><br />
-->            <td><input type="text" name="goods_number" value="{$goods.goods_number}" size="20" /><br />
            <span class="notice-span" id="noticeStorage" style="display:block" >{{$t("lang.notice_storage")}}</span></td>
          </div>
          </tr>
          <tr v-if="if_cfg_storage">
            <td class="label_pos">{{$t("lang.lab_warn_number")}}</td>
            <td><input type="text" name="warn_number" value="{$goods.warn_number}" size="20" /></td>
          </tr>	
					<tr>
            <td class="label_pos">{{$t("lang.lab_intro")}}</td>
            <td><input type="checkbox" name="is_best" value="1" v-model="cb_best" checked/>{{$t("lang.is_best")}}<input type="checkbox" name="is_new" value="1" v-model="cb_new" checked/>{{$t("lang.is_new")}} <input type="checkbox" name="is_hot" value="1" v-model="cb_hot" checked />{{$t("lang.is_hot")}}</td>
          </tr>
          <tr id="alone_sale_1">
            <td class="label_pos" id="alone_sale_2">{{$t("lang.lab_is_on_sale")}}</td>
            <td id="alone_sale_3"><input type="checkbox" name="is_on_sale" value="1" v-model="cb_alone_sale_1" checked /> {{$t("lang.on_sale_desc")}}</td>
          </tr>
          <tr>
            <td class="label_pos">{{$t("lang.lab_is_alone_sale")}}</td>
            <td><input type="checkbox" name="is_alone_sale" value="1" v-model="cb_alone_sale" checked /> {{$t("lang.alone_sale")}}</td>
          </tr>
          <tr>
            <td class="label_pos">{{$t("lang.lab_is_free_shipping")}}</td>
            <td><input type="checkbox" name="is_shipping" value="1" v-model="cb_free_shipping" checked /> {{$t("lang.free_shipping")}}</td>
          </tr>
					<tr>
            <td class="label_pos">{{$t("lang.lab_keywords")}}</td>
            <td><input type="text" name="keywords" value="{goods.keywords|escape}" size="40" /> {{$t("lang.notice_keywords")}}</td>
          </tr>
          <tr>
            <td class="label_pos">{{$t("lang.lab_goods_brief")}}</td>
            <td><textarea name="goods_brief" cols="40" rows="3">{$goods.goods_brief|escape}</textarea></td>
          </tr>
				</table>
			</div>
			<div class="tab-pane fade" id="properties">
				<table width="90%" id="properties-table" style="display:block" align="center">
          <tr>
          		<td class="label_pos"><a class="glyphicon glyphicon-exclamation-sign" @click="notice('noticeGoodsType',$event)" ></a>{{$t("lang.lab_goods_type")}}</td>
<!--              <td class="label"><a href="javascript:showNotice('noticeGoodsType');" title="{$lang.form_notice}"><img src="images/notice.gif" width="16" height="16" border="0" alt="{$lang.form_notice}"></a>{$lang.lab_goods_type}</td>
-->              <td>
                <select name="goods_type" onchange="getAttrList({$goods.goods_id})">
                  <option value="0">{$lang.sel_goods_type}</option>
                  {$goods_type_list}
                </select><br />
                <span class="notice-span" id="noticeGoodsType" style="display:block" >{{$t("lang.notice_goods_type")}}</span></td>
<!--              <span class="notice-span" {if $help_open}style="display:block" {else} style="display:none" {/if} id="noticeGoodsType">{$lang.notice_goods_type}</span></td>
-->          </tr>
          <tr>
            <td id="tbody-goodsAttr" colspan="2" style="padding:0">{$goods_attr_html}</td>
          </tr>
        </table>
			</div>
			<div class="tab-pane fade" id="gallery">
				<table width="90%" id="gallery-table" style="display:block" align="center">
          <tr>
            <td>
<!--              {foreach from=$img_list item=img key=i}
              <div id="gallery_{$img.img_id}" style="float:left; text-align:center; border: 1px solid #DADADA; margin: 4px; padding:2px;">
                <a href="javascript:;" onclick="if (confirm('{$lang.drop_img_confirm}')) dropImg('{$img.img_id}')">[-]</a><br />
                <a href="goods.php?act=show_image&img_url={$img.img_url}" target="_blank">
                <img src="../{if $img.thumb_url}{$img.thumb_url}{else}{$img.img_url}{/if}" {if $thumb_width neq 0}width="{$thumb_width}"{/if} {if $thumb_height neq 0}height="{$thumb_height}"{/if} border="0" />
                </a><br />
                <input type="text" value="{$img.img_desc|escape}" size="15" name="old_img_desc[{$img.img_id}]" />
              </div>
              {/foreach}
-->            </td>
          </tr>
          <tr><td>&nbsp;</td></tr>
          <tr>
            <td>
              <a href="javascript:;" onclick="addImg(this)">[+]</a>
              {$lang.img_desc} <input type="text" name="img_desc[]" size="20" />
              {$lang.img_url} <input type="file" name="img_url[]" />
<!--              <input type="text" size="40" value="{$lang.img_file}" style="color:#aaa;" onfocus="if (this.value == '{$lang.img_file}'){this.value='http://';this.style.color='#000';}" name="img_file[]"/>
-->            </td>
          </tr>
        </table>
			</div>
			<div class="tab-pane fade" id="linkgoods">
				<table width="90%" id="linkgoods-table" style="display:block" align="center">
          <!-- 鍟嗗搧鎼滅储 -->
          <tr>
            <td colspan="3">
              <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
              <select name="cat_id1"><option value="0">{$lang.all_category}{$cat_list}</select>
              <select name="brand_id1"><option value="0">{$lang.all_brand}{html_options options=$brand_list}</select>
              <input type="text" name="keyword1" />
              <input type="button" value="{$lang.button_search}"  class="button"
                onclick="searchGoods(sz1, 'cat_id1','brand_id1','keyword1')" />
            </td>
          </tr>
          <!-- 鍟嗗搧鍒楄〃 -->
          <tr>
            <th>{$lang.all_goods}</th>
            <th>{$lang.handler}</th>
            <th>{$lang.link_goods}</th>
          </tr>
          <tr>
            <td width="42%">
              <select name="source_select1" size="20" style="width:100%" ondblclick="sz1.addItem(false, 'add_link_goods', goodsId, this.form.elements['is_single'][0].checked)" multiple="true">
              </select>
            </td>
            <td align="center">
              <p><input name="is_single" type="radio" value="1" checked="checked" />{$lang.single}<br /><input name="is_single" type="radio" value="0" />{$lang.double}</p>
              <p><input type="button" value=">>" onclick="sz1.addItem(true, 'add_link_goods', goodsId, this.form.elements['is_single'][0].checked)" class="button" /></p>
              <p><input type="button" value=">" onclick="sz1.addItem(false, 'add_link_goods', goodsId, this.form.elements['is_single'][0].checked)" class="button" /></p>
              <p><input type="button" value="<" onclick="sz1.dropItem(false, 'drop_link_goods', goodsId, elements['is_single'][0].checked)" class="button" /></p>
              <p><input type="button" value="<<" onclick="sz1.dropItem(true, 'drop_link_goods', goodsId, elements['is_single'][0].checked)" class="button" /></p>
            </td>
            <td width="42%">
              <select name="target_select1" size="20" style="width:100%" multiple ondblclick="sz1.dropItem(false, 'drop_link_goods', goodsId, elements['is_single'][0].checked)">
<!--                {foreach from=$link_goods_list item=link_goods}
                <option value="{$link_goods.goods_id}">{$link_goods.goods_name}</option>
                {/foreach}
-->              </select>
            </td>
          </tr>
        </table>
			</div>
			<div class="tab-pane fade" id="groupgoods">
				<table width="90%" id="groupgoods-table" style="display:block" align="center">
          <!-- 鍟嗗搧鎼滅储 -->
          <tr>
            <td colspan="3">
              <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
              <select name="cat_id2"><option value="0">{$lang.all_category}{$cat_list}</select>
              <select name="brand_id2"><option value="0">{$lang.all_brand}{html_options options=$brand_list}</select>
              <input type="text" name="keyword2" />
              <input type="button" value="{$lang.button_search}" onclick="searchGoods(sz2, 'cat_id2', 'brand_id2', 'keyword2')" class="button" />
            </td>
          </tr>
          <!-- 鍟嗗搧鍒楄〃 -->
          <tr>
            <th>{$lang.all_goods}</th>
            <th>{$lang.handler}</th>
            <th>{$lang.group_goods}</th>
          </tr>
          <tr>
            <td width="42%">
              <select name="source_select2" size="20" style="width:100%" onchange="sz2.priceObj.value = this.options[this.selectedIndex].id" ondblclick="sz2.addItem(false, 'add_group_goods', goodsId, this.form.elements['price2'].value)">
              </select>
            </td>
            <td align="center">
              <p>{$lang.price}<br /><input name="price2" type="text" size="6" /></p>
              <p><input type="button" value=">" onclick="sz2.addItem(false, 'add_group_goods', goodsId, this.form.elements['price2'].value)" class="button" /></p>
              <p><input type="button" value="<" onclick="sz2.dropItem(false, 'drop_group_goods', goodsId, elements['is_single'][0].checked)" class="button" /></p>
              <p><input type="button" value="<<" onclick="sz2.dropItem(true, 'drop_group_goods', goodsId, elements['is_single'][0].checked)" class="button" /></p>
            </td>
            <td width="42%">
              <select name="target_select2" size="20" style="width:100%" multiple ondblclick="sz2.dropItem(false, 'drop_group_goods', goodsId, elements['is_single'][0].checked)">
<!--                {foreach from=$group_goods_list item=group_goods}
                <option value="{$group_goods.goods_id}">{$group_goods.goods_name}</option>
                {/foreach}
-->              </select>
            </td>
          </tr>
        </table>
			</div>
			<div class="tab-pane fade" id="article">
				 <table width="90%" id="article-table" style="display:block" align="center">
          <!-- 鏂囩珷鎼滅储 -->
          <tr>
            <td colspan="3">
              <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
              {$lang.article_title} <input type="text" name="article_title" />
              <input type="button" value="{$lang.button_search}" onclick="searchArticle()" class="button" />
            </td>
          </tr>
          <!-- 鏂囩珷鍒楄〃 -->
          <tr>
            <th>{$lang.all_article}</th>
            <th>{$lang.handler}</th>
            <th>{$lang.goods_article}</th>
          </tr>
          <tr>
            <td width="45%">
              <select name="source_select3" size="20" style="width:100%" multiple ondblclick="sz3.addItem(false, 'add_goods_article', goodsId, this.form.elements['price2'].value)">
              </select>
            </td>
            <td align="center">
              <p><input type="button" value=">>" onclick="sz3.addItem(true, 'add_goods_article', goodsId, this.form.elements['price2'].value)" class="button" /></p>
              <p><input type="button" value=">" onclick="sz3.addItem(false, 'add_goods_article', goodsId, this.form.elements['price2'].value)" class="button" /></p>
              <p><input type="button" value="<" onclick="sz3.dropItem(false, 'drop_goods_article', goodsId, elements['is_single'][0].checked)" class="button" /></p>
              <p><input type="button" value="<<" onclick="sz3.dropItem(true, 'drop_goods_article', goodsId, elements['is_single'][0].checked)" class="button" /></p>
            </td>
            <td width="45%">
              <select name="target_select3" size="20" style="width:100%" multiple ondblclick="sz3.dropItem(false, 'drop_goods_article', goodsId, elements['is_single'][0].checked)">
<!--                {foreach from=$goods_article_list item=goods_article}
                <option value="{$goods_article.article_id}">{$goods_article.title}</option>
                {/foreach}
-->              </select>
            </td>
          </tr>
        </table>
			</div>
			
  	</div>
  	
  	        <div class="button-div">
          <input type="hidden" name="goods_id" value="{$goods.goods_id}" />
<!--          {if $code neq ''}
          <input type="hidden" name="extension_code" value="{$code}" />
          {/if}
-->          <input type="button" value="{$lang.button_submit}" class="button" onclick="validate('{$goods.goods_id}')" />
          <input type="reset" value="{$lang.button_reset}" class="button" />
        </div>
        
  </div>	
</div>
<!-- end goods form -->
<script src="../../lang/modules/goods/info_lang.js"></script>
<script src="../../js/modules/goods/info.js"></script>
</body>
</html>
